/*
 * @Author: 亚亚
 */
/*
 * @Author: 亚亚
 */
/*
 * @Author: 亚亚
 */
/*
 * @Author: 亚亚
 */
/*
 * @Author: 亚亚
 */
interface SelectOptions {
  // label: string | number | boolean | object,
  [label: string]: string | number | boolean | object,
  value: string | number,
  disabled: boolean
}
interface PropsT {
  label: string,
  value: string
}
import type { PropType } from "vue"
export const props = {
  modelValue: {
    type: [Array, Object, String, Number, Boolean],
    default: ''
  },
  label: {
    type: String
  },
  options: {
    type: Array as PropType<SelectOptions[]>,
    default: () => [],
  },
  props: {
    type: Object as PropType<PropsT>,
    default: ()=> {
      return {
        label: 'label',
        value: 'value',
      }
    }
  },
  style: {
    type: Object,
    default: () => {
      return { width: '100%' }
    }
  }
}